﻿<%@ Page Language="C#" AutoEventWireup="true" CodeFile="VerifyCircuit_Add.aspx.cs"
    Theme="admin_skin" Inherits="Admin_VerifyCircuit_VerifyCircuit_Add" %>

<%@ Register Assembly="System.Web.Extensions, Version=1.0.61025.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35"
    Namespace="System.Web.UI" TagPrefix="asp" %>
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head runat="server">
    <title>流程添加</title>
    <link href="../../App_Themes/css/admin_css.css" type="text/css" rel="stylesheet" />
    <script type="text/javascript" language="javascript">
        function userinfo(str)
            {                  
              window.open('../../WebCommon/UserInfo.aspx?SID='+str,'','width=700,height=580,top=150, left=300'); 
            }
    </script>
</head>
<body>
    <form id="form1" runat="server">
        <asp:ScriptManager ID="ScriptManager1" runat="server">
        </asp:ScriptManager>
        <table style="width: 509px">
            <tr>
                <td style="width: 71px">
                    流程名称 :&nbsp;
                </td>
                <td>
                    <asp:TextBox ID="txtVerifyName" runat="server" SkinID="textboxSkin"></asp:TextBox><asp:RequiredFieldValidator
                        ID="RequiredFieldValidator1" runat="server" ControlToValidate="txtVerifyName"
                        ErrorMessage="流程名不可以空" Display="Dynamic"></asp:RequiredFieldValidator></td>
            </tr>
            <tr>
                <td valign="middle" style="width: 71px">
                    流程级数 :
                </td>
                <td>
                    <asp:DropDownList ID="drpLevel" runat="server" AutoPostBack="True" OnSelectedIndexChanged="drpLevel_SelectedIndexChanged" SkinID="dropdownlistSkin">
                        <asp:ListItem Value="0">请选择流程级数</asp:ListItem>
                        <asp:ListItem>1</asp:ListItem>
                        <asp:ListItem>2</asp:ListItem>
                        <asp:ListItem>3</asp:ListItem>
                        <asp:ListItem>4</asp:ListItem>
                        <asp:ListItem>5</asp:ListItem>
                        <asp:ListItem>6</asp:ListItem>
                        <asp:ListItem>7</asp:ListItem>
                        <asp:ListItem>8</asp:ListItem>
                        <asp:ListItem>9</asp:ListItem>
                        <asp:ListItem>10</asp:ListItem>
                        <asp:ListItem>11</asp:ListItem>
                        <asp:ListItem>12</asp:ListItem>
                        <asp:ListItem>13</asp:ListItem>
                        <asp:ListItem>14</asp:ListItem>
                        <asp:ListItem>15</asp:ListItem>
                    </asp:DropDownList></td>
            </tr>
            <tr>
                <td style="width: 71px">
                    部门名称 :</td>
                <td>
                    <asp:DropDownList ID="drpDepartmetnName" runat="server" AutoPostBack="True" OnSelectedIndexChanged="drpLevel_SelectedIndexChanged" SkinID="dropdownlistSkin">
                    </asp:DropDownList></td>
            </tr>
            <tr>
                <td valign="middle" style="width: 71px">
                    具体定义 :</td>
                <td>
                    <asp:UpdatePanel ID="UpdatePanel1" runat="server" UpdateMode="Conditional">
                        <ContentTemplate>
                            <asp:GridView ID="GridView1" runat="server" AutoGenerateColumns="False" OnRowCreated="GridView1_RowCreated">
                                <Columns>
                                    <asp:BoundField HeaderText="级数">
                                        <HeaderStyle HorizontalAlign="Center" VerticalAlign="Middle" Wrap="False" />
                                    </asp:BoundField>
                                    <asp:TemplateField HeaderText="审核人">
                                        <ItemTemplate>
                                            <input id="txtVerifyPeople" runat="server" type="text" readonly="readOnly" /><a href="#" onclick="javascript:userinfo(parentNode.firstChild.id );"><img
                                                    alt="" border="0" src="../../images/addpages.jpg" /></a><asp:RequiredFieldValidator
                                                        ID="RequiredFieldValidator2" runat="server" ControlToValidate="txtVerifyPeople"
                                                        Display="Dynamic" ErrorMessage="审核人不可为空"></asp:RequiredFieldValidator>
                                        </ItemTemplate>
                                    </asp:TemplateField>
                                </Columns>
                            </asp:GridView>
                        </ContentTemplate>
                        <Triggers>
                            <asp:AsyncPostBackTrigger ControlID="drpLevel" EventName="SelectedIndexChanged"></asp:AsyncPostBackTrigger>
                        </Triggers>
                    </asp:UpdatePanel>
                </td>
            </tr>
            <tr>
                <td style="text-align: left" colspan="2">
                    &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;
                    <asp:Button ID="btnAdd" runat="server" OnClick="btnAdd_Click" Text="提交" SkinID="buttonSkin" />
                    <asp:Button ID="btnback" runat="server" CausesValidation="False" OnClick="btnback_Click"
                        SkinID="buttonSkin" Text="返回" /></td>
            </tr>
        </table>
        <input id="h1" type="hidden" runat="server" />
    </form>
</body>
</html>
